package cn.com.agree.manager.service;

import cn.com.agree.manager.dao.SysUserRepository;
import cn.com.agree.manager.entity.SysUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: wangmu
 * @Description:
 * @Date: Created in 下午 16:08 2018/4/19 0019
 */
@Service
public class UserService {

    @Autowired
    private SysUserRepository sysUserRepository;

    public SysUser findUserByName(String username) {
        return sysUserRepository.findOneByName(username).get();
    }
}
